package com.cn;

/**
 * @Description : 线程类
 * @Author : Bruce Lee
 * @CreateTime : 2024/5/28
 */

public class MyThread extends Thread{

    @Override
    public void run() {
        TestController.threadLocal.set("456");
        System.out.println("当前线程的ThreadLocal值为" + TestController.threadLocal.get());
        System.out.println("当前线程为：" + Thread.currentThread().getName());
    }


}
